﻿<!doctype html>
<html>
<head>
<link rel="dns-prefetch" id="domain" href="${rc.contextPath}">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta charset="utf-8" name="viewport" content="width=device-width; initial-scale=1.0">
<title>离线销售-迈小众</title>
<link href="${rc.contextPath}/res/css/offline.css" rel="stylesheet">
<style>
.feignhide{width:0px;height:0px;padding:0px;margin:0px;border:0px;}/* 假装隐藏 *//* (兼容)使表单中隐藏的submit按钮发挥回车事件*/
table tbody tr.hover td{background-color: #cccccc}
#tjbox .main .settle{position: absolute;width:690px;overflow:hidden;border: 8px solid rgba(0, 0, 0, 0.5);background-color: #FFF;border-radius: 10px;}
#tjbox .main .settle p{height:80px;line-height:80px;padding: 10px 50px;margin:0px;font-size:80px;}
#tjbox .main .settle p span{height:80px;line-height:80px;}
#tjbox .main .settle input[type=text]{width:320px;height:80px;line-height:80px;font-size:80px;border:0px 0px 1px 0px;color: #404040;font-family: '微软雅黑','宋体';}
</style>
</head>

<body>
<div id="headerbox">
<div id="header">
  <div class="main"> <span class="logo"></span>
    <ul id="saletabs"></ul>
    <a href="http://www.51mxz.com/order/list" class="back">返回管理中心</a> </div>
</div>
<div>
	<div id="chosebox">
	   <div class="main">
	     <div class="f_left"><a id="typeinBt_add" class="selected">商品录入</a><a id="typeinBt_settle" >结账</a></div>
	     <div class="f_right"><span>订单金额：<strong id="totalMoney">0.00</strong>元</span><a id="putupBt" class="btn">挂起</a><a id="delBt" class="btn">取消</a></div>
	   </div>
	</div>
	<div id="tjbox">
	  <div class="main">
	    <div id="type_add" class="f_left">
		    <div class="f_left">
		      <form id="codeForm" autocomplete="off">
		      <span><span id="lcode">商品</span>：</span>
		      <!-- 商品筛选 -->
			  <div class="tablebox" style="float: left;margin-top: 35px;">
			  <div id="filterGoods" style="display:none;position: absolute;overflow:auto;max-height:400px;border: 8px solid rgba(0, 0, 0, 0.5);background-color: #FFF;border-radius: 10px;">
				<table width="700" border="0" cellspacing="1" cellpadding="0" style="margin-right: 17px;">
				  <col width="150" />
				  <col width="auto" />
				  <col width="100" />
				  <tbody>
				  <tr id="filter_-{index}-">
				  	<td>-{barCode}-</td>
				    <td class="name">-{name}-</td>
				    <td>-{price}-</td>
				  </tr>
				  </tbody>
				</table>
			  </div>
			  </div>
			  <!-- 商品筛选 end -->
		  	  <input id="code" type="text" value="" placeholder="商品条码" class="text">
		      <!-- <input id="subtotal" type="text" value="0" placeholder="小计（元）" class="text" style="width:80px"> -->
		      <a id="manualBt_0" class="btn">添加</a>
		      <input type="submit" id="manualBt_1" onclick="return false;" class="feignhide"><!-- 实现回车提交 -->
		      </form>
		    </div>
	    </div>
	    <div id="type_settle" class="f_left" style="display:none;padding-left:90px;">
	        <div id="settleDiv" class="settle">
				<form id="settleForm">
				 <p>应收：<strong id="totalMoney1" style="color:red;">0.00</strong></p>
	  			 <p>
	  			  <span><span id="lreceived">现收</span>：</span>
	        	  <input id="received" type="text" name="received" value="" class="text" autocomplete="off" maxlength="7">
	        	  <input id="returned" type="hidden" name="returned" value="" class="text">
	  			 </p>
	  			 <p>
	  			  <span>找零：<strong id="treturned">0.00</strong></span>
	  			 </p>
	  			 <p style="height: 50px;">
	  			  <a id="finishBt_0" class="btn" style="margin-left: 200px;font-size: 16px;">完成</a>
	        	  <a id="unfinishBt" class="btn" style="margin-left: 20px;font-size: 16px;">返回</a>
	        	  <input type="submit" id="finishBt_1" onclick="return false;" class="feignhide"><!-- 实现回车提交 -->
	  			 </p>
	        	</form>
			</div>
	    </div>
	    <div id="clientLogin" class="f_right" style="display:none;">
	      <form id="accountForm">
	      <span><span id="lname">用户</span>：</span>
	      <input id="accountName" name="name" type="text" value="" placeholder="用户名/手机号/邮箱" class="text"  style="width:160px;">
	      <input id="accountPin" name="pin" type="text"  value="" placeholder="PIN码" class="text"  style="width:70px;">
	      <a id="accountBt_0" class="btn" >确定</a>
	      <input type="submit" id="accountBt_1" onclick="return false;" class="feignhide"><!-- 实现回车提交 -->
	      </form>
	    </div>
	    <div id="clientInfo" class="f_right" style="display:none;">用户： <a id="clientName" class="hy"></a> ,  余额： <strong id="clientBalance">0.00</strong> 元</div>
	  </div>
	</div>
	<div class="main">
	  <div class="tablebox">
	    <table id="listTitle" width="100%" border="0" cellspacing="1" cellpadding="0">
	      <col width="50" />
	      <col width="150" />
	      <col width="auto" />
	      <col width="100" />
	      <col width="120" />
	      <col width="100" />
	      <col width="60" />
	      <tr>
	        <th>#</th>
	        <th>商品条码</th>
	        <th class="name">商品名称</th>
	        <th>单价（元）</th>
	        <th class="sl">数量</th>
	        <th>小计（元）</th>
	        <th>操作</th>
	      </tr>
	    </table>
	  </div>
	</div>
</div>
</div>
<div id="main">
  <div class="tablebox">
  	<form id="goodsesForm">
  	<input type="hidden" id="serialCode" name="serialCode" value="">
  	<table id="goodslist" width="100%" border="0" cellspacing="1" cellpadding="0">
        <col width="50" />
        <col width="150" />
        <col width="auto" />
        <col width="100" />
        <col width="120" />
        <col width="100" />
        <col width="60" />
      <tbody style="display:none;">
      <tr id="goods_-{id}-">
      	<td style="display:none;">
      		<input id="id_-{id}-" type="hidden" value="-{id}-">
      		<input id="cost_-{id}-" type="hidden" value="-{cost}-">
      	</td>
        <td id="tnum_-{id}-">-{num}-</td>
        <td id="tcode_-{id}-">-{code}-</td>
        <td id="tname_-{id}-" class="name">-{name}-</td>
        <td id="tprice_-{id}-">-{price}-</td>
        <td class="sl"><input id="amount_-{id}-" type="text" value="-{amount}-" size="10" class="text" data-rule="required;money">  -{unit}-</td>
        <td id="tcost_-{id}-" style="text-align:right;">-{cost}-</td>
        <td><a id="delGoods_-{id}-" href="#">删除</a></td>
      </tr>
      </tbody>
    </table>
    </form>
  </div>
</div>
<!--填写商品金额 -->
<div id="subtotalDialog" class="popbox" style="display:none;">
  <div class="box" style="width:400px;height: 50px;padding: 40px 20px;">
    <form id="subtotalForm" autocomplete="off">
      <span>金额：</span>
      <input id="subtotal" name="subtotal" type="text" value="" class="text" >
      <span>元</span>
      <a id="subtotalBt_0" class="btn" style="width:35px;display: inline-block;">确定</a>
      <input id="subtotalBt_1" type="submit" onclick="return false;" class="feignhide"><!-- 实现回车提交 -->
	</form>
  </div>
</div>
<!--填写商品金额 end-->
<!--提示弹窗 -->
<div id="tip" class="popbox">
  <div class="box">
    <div class="loading"></div>
    <h2 class="msg">请稍候…</h2>
  </div>
</div>
<!--提示弹窗 end-->
<!-- (ie兼容) 样式直接使用display:none 将无法打印iframe内容,打印的是顶层页面内容 -->
<iframe id="printframe" style="width:0px;height:0px;border:0px;padding:0px;margin:0px;" src="${rc.contextPath}/print"></iframe>
<!--footer-->
<div id="footer">Copyright© 迈小众 <span style="padding-left:30px;">客服QQ：<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=3101084438&site=qq&menu=yes" rel="nofollow"><img border="0" src="http://wpa.qq.com/pa?p=2:3101084438:50" alt="点击联系我们，QQ：3101084438" title="点击联系我们，QQ：3101084438"></a></span></div>
<!--footer end-->
<script data-main="${rc.contextPath}/res/js/fieldSale" src="${rc.contextPath}/res/js/require.js"></script>
</body>
</html>
